package org.jxht.service.impl;

import org.jxht.dao.StuEvaDao;
import org.jxht.dto.EvaQuestionDto;
import org.jxht.dto.entity.RequestEvaEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评教业务Service
 *
 * @anthor huang
 * @Create 2017/5/26
 **/
@Service
public class StuEvaService implements org.jxht.service.StuEvaService{

    @Autowired
    StuEvaDao stuEvaDao;

    public void insertStuEvaService(RequestEvaEntity entity) {
        stuEvaDao.insertStuEvaDao(entity);
    }

    public void insertEvaluationService(EvaQuestionDto dto) {
        stuEvaDao.insertEvaluation(dto);
    }

    public List queryStuEvaService(RequestEvaEntity entity) {
        return stuEvaDao.queryStuEvaDao(entity);
    }

    public List queryEvaluationService() {
        return stuEvaDao.queryEvaluation();
    }

    public void deleteStuEvaService(RequestEvaEntity entity) {
        stuEvaDao.deleteStuEvaDao(entity);
    }

    public void deleteEvaluationService(EvaQuestionDto dto) {
        stuEvaDao.deleteEvaluation(dto);
    }
}
